﻿using RecruitStudents.Client.BLL;
using RecruitStudents.Utility;
using RecruitStudents.Utility.Helper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RecruitStudents.Client.Score
{
    public partial class Score_ScorePublishForm_Option : BaseForm
    {
        ServiceScore serviceScore = new ServiceScore();
        public Score_ScorePublishForm_Option()
        {
            InitializeComponent();
            using (DataTable dt = serviceScore.GetExamResultsPublishTable(SessionerHelper.ExamPlaceID, SessionerHelper.SpecialityKindsNO, SessionerHelper.ExamLevel))
            {
                if (dt != null && dt.Rows.Count > 0)
                {
                    txtRemark.Text = dt.Rows[0]["Remartk1"].ToSafeString();
                }
            }
        }
        public string strRemark = string.Empty;
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (txtRemark.Text == "")
            {
                DevHelper.ShowErrorMessageBox("请先输入备注内容!");
            }
            else
            {
                strRemark = txtRemark.Text;
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }
    }
}
